"""
LESON
"""
class A:
    property1 = 'Property 1'
    property2 = 'Property 2'
    name = 'guest'

    def say_hi(self, name=''):
        if name:
            return 'Hi, ' + name
        else:
            return 'Hello, ' + self.name


a = A()
b = A()
# a.property1 = 'Property 1'
# a.property2 = 'Property 2'
# print(a)
print(a.property1)
print(a.say_hi('John'))

############################
class B:
    Xususiyat1 ='Xususiyatlar1'
    Xususiyat2 ='Xususiyatlar2'

    #   def salom(salom1, ism='mexmon'):
    #       return 'Salom ' + ism
    def salom(salom1, ism='mexmon'):
        if ism:
            return 'Salom ' + ism + ' to\'y qachon?'
        else:
            return self.ism

a = B()
b = B()

print(a)

# a.Xususiyat1 = 'Xususiyat1'
# a.Xususiyat2 = 'Xususiyat2'

print(a.Xususiyat1)
print(a.Xususiyat2)
print(a.salom())
print(b.salom('Og\'abek'))
